module traffic_lights_ex_top(
	input clk,
	input reset,
	input press,
	output [2:0] lights_c,
	output [2:0] lights_p
);
	wire [4:1] W;
	wire [4:1] C;
	
    // Module Instantiation
	fsm_control_ex_3d fsm_inst(
        .clk(clk),
        .reset(reset),
        .press(press),
        .W(W),
        .lights_c(lights_c),
        .lights_p(lights_p),
        .C(C)
    );
	
	cntm #(
        .CNTM(10)  //  W1	CNTM=10
    ) cntm10_instance (
        .clk(clk),
        .enable(C[1]),
        .W(W[1])
    );
	 
	 cntm #(
        .CNTM(3)  // W2	CNTM=3
    ) cntm3_instance (
        .clk(clk),
        .enable(C[2]),
        .W(W[2])
    );
	 
	 cntm #(
        .CNTM(30)  // W3	CNTM=30
    ) cntm30_instance (
        .clk(clk),
        .enable(C[3]),
        .W(W[3])
    );
	 
	 cntm #(
        .CNTM(60)  // W4	CNTM=60
    ) cntm60_instance (
        .clk(clk),
        .enable(C[4]),
        .W(W[4])
    );
	 
endmodule
